home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-08-02 | 6.1 KB | 187 lines | [TEXT/KAHL] |
- 02Aug93 e
-
- Attached are updates to several files for the Mac version of
- SML/NJ 93. These files add no features, fix no bugs. So why
- am I sending them to you?
-
- Compiling SML/NJ v93 with ThinkC 6.0 lead to several problems.
- Most of these were solved quite easily. Almost all of the errors
- are the result of ThinkC 6's stronger prototype enforcement for
- Mac traps and are fixed with casts. The edited files are attached.
- Below is a list of the compiler errors, as produced by ThinkC 6,
- and new versions of the lines in error. <<file !930802errs.text>>
-
- I also made a change in cfuns.c where the preprocessor condition
- (THINK_C < 5) was added as follows:
-
- #ifdef THINK_C
- #if (THINK_C < 5)
- struct stat {
- int foo;
- };
- static int ___lstat (char *s, struct stat *buf)
- {
- }
- static int ____fstat (int fd, struct stat *buf)
- {
- }
- #endif
- #endif
-
- I would like this to have been (THINK_C < 6), but although the
- documentation says that THINK_C is 6 in this version, the
- documentation lies. Except for this change, all of the files
- should be backward compatable with ThinkC 5. Note that the
- Symantec ANSI library now supports stat(), so it will be easier
- to add several of the cfuns next time around.
-
- I also needed to remake the ANSI-ML project. This went without incident.
- I needed to placed it in a folder inside src along with an alias to the
- "Symantec C++ for the Mac" folder, but I don't recall why. If you run
- into trouble you might give this a try as well.
-
- e
-
- ===================================================================================
- File “os_mac.c”; Line 341
- Error: first argument to function ‘PBHGetFInfo’ does not match prototype
- =-=
- err = PBHGetFInfo( (HParmBlkPtr )&pb, FALSE );
- ===
- File “os_mac.c”; Line 350
- Error: first argument to function ‘PBHSetFInfo’ does not match prototype
- =-=
- PBHSetFInfo( (HParmBlkPtr )&pb, FALSE );
- ===
- File “os_mac.c”; Line 606
- Error: argument to function ‘DisposPtr’ does not match prototype
- =-=
- { DisposPtr( (Ptr )wind_table[id].filename ); wind_table[id].filename = NULL; }
- ===
- File “os_mac.c”; Line 956
- Error: argument #5 to function ‘SFGetFile’ does not match prototype
- =-=
- SFTypeList ftypes;
- SFGetFile( SFGwhere, prompt, 0L, nbtypes, ftypes, 0L, &reply );
- ===
- File “os_mac.c”; Line 1578
- Error: first argument to function ‘SetCtlValue’ does not match prototype
- =-=
- SetCtlValue( (ControlHandle )h, find_wrap );
- ===
- File “os_mac.c”; Line 1580
- Error: first argument to function ‘SetCtlValue’ does not match prototype
- =-=
- SetCtlValue( (ControlHandle )h, find_ci );
- ===
- File “os_mac.c”; Line 1592
- Error: argument to function ‘GetCtlValue’ does not match prototype
- =-=
- find_wrap = GetCtlValue( (ControlHandle )h );
- ===
- File “os_mac.c”; Line 1594
- Error: argument to function ‘GetCtlValue’ does not match prototype
- =-=
- find_ci = GetCtlValue( (ControlHandle )h );
- ===
- File “os_mac.c”; Line 1658
- Error: last argument to function ‘GetItem’ does not match prototype
- =-=
- { GetItem(menus[appleM], theItem, name);
- ===
- File “os_mac.c”; Line 1659
- Error: argument to function ‘OpenDeskAcc’ does not match prototype
- =-=
- OpenDeskAcc( name );
- ===================================================================================
- File “os_mac_console.c”; Line 93
- Error: argument to function ‘SelectWindow’ does not match prototype
- =-=
- SelectWindow( (WindowPtr )wp );
- ===
- File “os_mac_console.c”; Line 94
- Error: argument to function ‘ShowWindow’ does not match prototype
- =-=
- ShowWindow( (WindowPtr )wp );
- ===================================================================================
- File “os_mac_eStyle.c”; Line 262
- Error: second argument to function ‘NewMenu’ does not match prototype
- =-=
- hM = NewMenu( id, "\p" );
- ===
- File “os_mac_eStyle.c”; Line 350
- Error: argument to function ‘DisposHandle’ does not match prototype
- =-=
- if( popMenu3 ) DisposHandle( (Handle )popMenu3 );
- ===
- File “os_mac_eStyle.c”; Line 359
- Error: argument to function ‘DisposHandle’ does not match prototype
- =-=
- if( popMenu4 ) DisposHandle( (Handle )popMenu4 );
- ===
- File “os_mac_eStyle.c”; Line 385
- Error: argument to function ‘DisposHandle’ does not match prototype
- =-=
- if( popMenu3 ) DisposHandle( (Handle )popMenu3 );
- ===
- File “os_mac_eStyle.c”; Line 396
- Error: argument to function ‘DisposHandle’ does not match prototype
- =-=
- if( popMenu4 ) DisposHandle( (Handle )popMenu4 );
- ===
- File “os_mac_eStyle.c”; Line 520
- Error: argument #4 to function ‘GetDItem’ does not match prototype
- =-=
- GetDItem( dbox, item, &itemtype, (Handle *)&hC, &itemrect);
- ===
- File “os_mac_eStyle.c”; Line 561
- Error: argument to function ‘DisposHandle’ does not match prototype
- =-=
- if( popMenu1 ) DisposHandle( (Handle )popMenu1 );
- ===
- File “os_mac_eStyle.c”; Line 563
- Error: argument to function ‘DisposHandle’ does not match prototype
- =-=
- if( popMenu2 ) DisposHandle( (Handle )popMenu2 );
- ===
- File “os_mac_eStyle.c”; Line 565
- Error: argument to function ‘DisposHandle’ does not match prototype
- =-=
- if( popMenu3 ) DisposHandle( (Handle )popMenu3 );
- ===
- File “os_mac_eStyle.c”; Line 567
- Error: argument to function ‘DisposHandle’ does not match prototype
- =-=
- if( popMenu4 ) DisposHandle( (Handle )popMenu4 );
- ===
- File “os_mac_eStyle.c”; Line 581
- Error: second argument to function ‘NewMenu’ does not match prototype
- =-=
- popMenu1 = NewMenu( popMenuID1, "\p" );
- ===
- File “os_mac_eStyle.c”; Line 587
- Error: second argument to function ‘NewMenu’ does not match prototype
- =-=
- popMenu2 = NewMenu( popMenuID2, "\p" );
- ===================================================================================
- File “os_mac_Print.c”; Line 103
- Error: argument to function ‘PenPat’ does not match prototype
- =-=
- PenMode(patCopy);PenSize(1,1);PenPat( (ConstPatternParam )&qd.black );
- ===
- File “os_mac_Print.c”; Line 137
- Error: argument to function ‘GetDateTime’ does not match prototype
- =-=
- unsigned long time;
- ===
- File “os_mac_Print.c”; Line 168
- Error: second argument to function ‘NumToString’ does not match prototype
- =-=
- NumToString( ePrintPage, tStr );
- ===
- File “os_mac_Print.c”; Line 169
- Error: argument to function ‘DrawString’ does not match prototype
- =-=
- DrawString( tStr );
- ===================================================================================
-